package dfbz.demo05;

public class son extends parsent{
    public String name="子类";
    public int age=21;

    public son() {
        this("1",1);
    }

    public son(String name,int age) {
        super(name, age);//子类构造可以通过super()调用父类的有参/无参
    }

    public son(String name) {
        this();
    }
    @Override
    public void send(){
        //继承父类的发文字短信功能
        super.send();
        System.out.println("这是子类对父类的发短信功能----可发图片");
    }
    public void show1(){
        System.out.println(this.name+","+this.age);
    }
}
